ComponentOne Data Source for Entity Framework
C1.WPF.LiveLinq Namespace / WpfExtensions Class / ToIndexed Method / ToIndexed<T>(ObservableCollection<T>) Method
The type of the elements in the collection.
An System.Collections.ObjectModel.ObservableCollection`1 represent as an C1.LiveLinq.Collections.IndexedCollection<T>.

In This Topic
    ToIndexed<T>(ObservableCollection<T>) Method
    In This Topic
    A typed specialization of the ToIndexed<T>(INotifyCollectionChanged) method.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ToIndexed(Of T)( _
       ByVal source As System.Collections.ObjectModel.ObservableCollection(Of T) _
    ) As IndexedCollection(Of T)
    public static IndexedCollection<T> ToIndexed<T>( 
       System.Collections.ObjectModel.ObservableCollection<T> source
    )

    Parameters

    source
    An System.Collections.ObjectModel.ObservableCollection`1 represent as an C1.LiveLinq.Collections.IndexedCollection<T>.

    Type Parameters

    T
    The type of the elements in the collection.

    Return Value

    An C1.LiveLinq.Collections.IndexedCollection<T> that contains the same elements as the System.Collections.ObjectModel.ObservableCollection`1 and enables indexing of that collection.
    See Also